package com.itboye.ihomebank.adapter;

import java.util.List;

import android.content.Context;

import com.itboye.ihomebank.R;
import com.itboye.ihomebank.bean.YongHuGuanLiBean;
import com.itboye.ihomebank.support.commonadapter.MutiplyCommonAdapter;
import com.itboye.ihomebank.support.commonadapter.ViewHolder;

/**
 * 钥匙用户管理
 *
 */
public class YongHuGuanLiAdapter extends MutiplyCommonAdapter<YongHuGuanLiBean>{
	
	int position;
	List<YongHuGuanLiBean> datas;

	public YongHuGuanLiAdapter(Context context, List<YongHuGuanLiBean> datas,
			int... layoutId) {
		super(context, datas, layoutId);
		this.datas=datas;
	}

	@Override
	public int getItemViewType(int position) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void getItemPosition(int position) {
		this.position=position;
		
	}

	@Override
	public void convert(ViewHolder holder, YongHuGuanLiBean t, int type,
			int position) {
		holder.setText(R.id.guanli_title, t.getName());
		
	}

}
